﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;

namespace RunAsService
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main(string[] args)
        {
#if DEBUG
            ChildProcesses.Start(args);
            Console.ReadKey();
            ChildProcesses.Stop();
#else      
            ServiceBase.Run(new ServiceBase[] { new SvcMain() });
#endif
        }
    }
}
